package com.hua.pojo;

public class User {
    private String name;

//    public User() {
//        System.out.println("User的无参数构造");  //只要new过对象，他就会显示
//    }

    public User(String name){
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void show(){
        System.out.println("name"+this.name);
    }
}
